package lwf.handler;

import net.lwf.entity.AttemptedQuestion;
import lwf.handler.helper.DisplayFormatter;

import com.itextpdf.text.Document;


public interface IProcessHandler {
	
	DisplayFormatter getDisplayFormatter();	//To be removed later
	String getQuestionDesc();	//To be removed later
	
	/**
	 * This method returns the document instance. The document instance is created
	 * based on the page orientation set from the handler.
	 * 
	 * @return
	 */
	Document getDocument();
	
	/**
	 * This method generates the PDF contents and displayed via browser
	 * 
	 * @param document
	 */
	void generate(Document document);
	
	//boolean matchAnswer(String useranswer, String actualanswer); //to be removed
	
	boolean matchAnswer(String useranswer, AttemptedQuestion aq);
	
	void setBaseImagePath(String baseImagePath);

} //IProcessHandler
